package com.centaline.androidsalesblog.api.usercenter;

import com.android.volley.Request;
import com.centaline.androidsalesblog.api.UserCenterApi;
import com.centaline.androidsalesblog.model.responseobject.ReservationUserCenterRo;
import com.centanet.framework.interfaces.IResponseListener;

import java.util.List;

/**
 * 删除我的约看（批量删除）
 * Created by ruanzb on 2016/5/10.
 */
public class DeleteReservationApi extends UserCenterApi<ReservationUserCenterRo> {

    private List<Integer> reserveIDList;  //约看标识

    public DeleteReservationApi(Class<?> tag, Class<ReservationUserCenterRo> aClass, IResponseListener<ReservationUserCenterRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setReserveIDList(List<Integer> reserveIDList) {
        this.reserveIDList = reserveIDList;
    }

    @Override
    protected void setParams() {
        putParams("ReserveIDList", reserveIDList);
    }

    @Override
    protected String getPath() {
        return "DeleteReservationRequest";
    }

    @Override
    protected int getMethod() {
        return Request.Method.POST;
    }
}
